package FlowGraph.Nodes;

import antlr.collections.AST;

import FlowGraph.FlowGraphNode;

//////////////////////////////////////////////////////////////////////////
//// SwitchEndNode
/**

@author Ivan Jeukens
@version v 0.1 03/10/2001
*/
public class SwitchEndNode extends FlowGraphNode {

    public SwitchEndNode(AST statement) {
        super(statement, SWITCH_END);
    }
    
    ///////////////////////////////////////////////////////////////////
    ////                        public methods                     ////
        
    public void setSwitchBegin(SwitchBeginNode begin) {
        _switchBegin = begin;
    }
    
    public SwitchBeginNode getSwitchBegin() {
        return _switchBegin;
    }

    public String toString() {
        return new String("end of switch(" +  ")");
    }
    
    ///////////////////////////////////////////////////////////////////
    ////                      private variables                    ////
    
    private SwitchBeginNode _switchBegin;
}
